<%@ include file="/jsp/templates/include.jsp"%>
<%@ taglib prefix="spring" uri="/spring"%>
<%@taglib uri='/WEB-INF/cewolf.tld' prefix='cewolf' %>
<%@page import="pt.mleiria.sAction.vo.UtilizadorVO"%>
<%@page import="pt.mleiria.sAction.utils.Constants"%>
<%@page import="pt.mleiria.sAction.datasetProducer.XYChartProducer"%>
<html>
<head>
<title><fmt:message key="login.title" /></title>
<%@ include file="/jsp/templates/includeMenu.jsp"%>
<link rel="shortcut icon" href="<%=request.getContextPath()%>/img/favicon.ico" >
</head>
<body>
<!--INICIO MENU APLICACAO-->
<table width="955" height="20" border="0" align="center" cellpadding="0"
	cellspacing="0" bgcolor="#999999" class="txt_submenuprincipal">
	<tr>
		<td style="padding-left:5px;"><script>m6246.draw();</script></td>
		<td align="right" class="txt_pormenor" style="color:#FFFFFF">
		<fmt:message key="label.user"/>:
		<%=((UtilizadorVO)request.getSession().getAttribute("user")).getUser() %>
		;&nbsp;
		<fmt:message key="label.versao"/>
		</td>
	</tr>
</table>
<!--FIM MENU APLICACAO-->
<!--INICIO CORPO-->
<FORM method="post" onKeyUp="highlight(event)" onClick="highlight(event)">
<table border="0" align="center" cellpadding="0" cellspacing="0"
	class="tbl_body">
	<tr>
		<td width="955" valign="top">
		<!--INICIO CAMINHO CONSTRUIDO-->
		<table width="940" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td class="txt_caminho"><strong><fmt:message key="caminho.login" /></strong></td>
				<td id="1" style="width:15px; vertical-align:top; overflow:visible">
				<!-- INICIO DA DIV -->
				<div
					style="vertical-align:top; text-align:left; z-index:2; position:absolute; width:205px">
				
				</div>
				<!-- FIM DA DIV -->
				</td>
			</tr>
		</table>
		<!--FIM CAMINHO CONSTRUIDO--> 
		<!--INICIO TITULO-->
		<spring:hasBindErrors name="mainPageCommand">
	    	<%@ include file="/jsp/templates/warningMessage.jsp" %>
		    <spring:bind path="mainPageCommand.*">
		    	<ul>
				<c:forEach var="error" items="${status.errorMessages}">
					<li><font class="txt_alerta"><c:out value="${error}"/></font></li>
				</c:forEach>	    	
				</ul>
		    </spring:bind>
	    </spring:hasBindErrors>	
		<table width="945" border="1" align="center" cellpadding="2" cellspacing="0">
			<tr>
				<td width="945" class="txt_labels_pesquisa" align="left" colspan="2">
					<table width="300" border="1" align="left" cellpadding="2" cellspacing="0">
					<tr>
						<td>
							<spring:bind path="mainPageCommand.searchTicker">
								<input name="searchTicker" value="<c:out value="${status.value}"/>"
									type="text" style="width: 150px;" maxlength="50"
									class="txt_textbox" onblur="blurTextBox('filter');"/>
							</spring:bind>
						</td>
						<td>
							<input name="submit" type="submit" class="txt_botao1" value="Pesquisar"/>
						</td>
					</tr>
					<tr>
						<td>
							<spring:bind path="mainPageCommand.markets">
								<select name="market" id="market" class="txt_combobox">
									<option value="-- Seleccionar --">-- Seleccionar --</option>
									<c:forEach items="${mainPageCommand.markets}" var="mar">
										<c:choose>
										<c:when test="${mainPageCommand.markets  eq  mar}">
											<option selected value='<c:out value="${mar}"/>'>
												<c:out value="${mar}"/>
											</option>
										</c:when>
										<c:otherwise>
											<option value='<c:out value="${mar}"/>'>
												<c:out value="${mar}"/>
											</option>
										</c:otherwise>
										</c:choose>
									</c:forEach>
								</select>
		        			</spring:bind>	
						</td>
						<td>
							<spring:bind path="mainPageCommand.types">
								<select name="type" id="type" class="txt_combobox">
									<option value="-- Seleccionar --">-- Seleccionar --</option>
									<c:forEach items="${mainPageCommand.types}" var="typ">
										<c:choose>
										<c:when test="${mainPageCommand.types  eq  typ}">
											<option selected value='<c:out value="${typ}"/>'>
												<c:out value="${typ}"/>
											</option>
										</c:when>
										<c:otherwise>
											<option value='<c:out value="${typ}"/>'>
												<c:out value="${typ}"/>
											</option>
										</c:otherwise>
										</c:choose>
									</c:forEach>
								</select>
		        			</spring:bind>
						</td>
					</tr>
					</table>	
				</td>
			</tr>
			<tr>
				<td width="945" class="txt_labels_pesquisa">
					<display:table name="sessionScope.stockList" pagesize='15' export="false" 
						style="width: 945px;" 
						defaultsort="1"
						class="lClass"
						requestURI="assetsMainView.htm"
						sort="list"
						id="parent"
						excludedParams="*">
						<display:column property="ticker" />
						<display:column property="name" />
						<display:column property="sector" />
					</display:table>	
				</td>
				</tr>
				<tr>
				<td width="945" class="txt_labels_pesquisa">
				
				
				</td>
			</tr>
		</table>
		<!--FIM TITULO--> 
		<!--INICIO MENSAGENS AO USER--> 
		<!-- FIM MENSAGENS AO USER -->
		<!--INICIO TABELA DADOS-->
		<!--FIM TABELA DADOS--> 
		<!--INICIO CAMPOS PESQUISA-->
		<!--FIM CAMPOS PESQUISA-->
		</td>
	</tr>
</table>
</FORM>
<!--FIM CORPO-->
<!--INICIO RODAPE-->
<%@ include file="/jsp/templates/rodape.jsp"%>
<!--FIM RODAPE-->
</body>
</html>
